#!/bin/bash

# ssh public key to be added.
sshPublicKey="{{sshPublicKey}}"

mkdir -p ~/.ssh && chmod 700 ~/.ssh 
touch ~/.ssh/authorized_keys
chmod 600 ~/.ssh/authorized_keys
echo $sshPublicKey >> ~/.ssh/authorized_keys
echo "operation success!"
